package com.how2java.tmall.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.how2java.tmall.pojo.User;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

	List<User> getList();

	List<User> getUserByName(String name);

	List<User> getUserByNameAndPassword(@Param("name")String name, @Param("password")String password);

}